home *** CD-ROM | disk | FTP | other *** search
/ Clickx 47 / Clickx 47.iso / assets / software / sswitchxp152.exe / source / SpeedswitchXP / CPUOptions.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-07-12  |  1.8 KB  |  70 lines

  1. /*
  2.    SpeedswitchXP V1.5
  3.    - Windows XP CPU Frequency Control for Notebooks -
  4.  
  5.    Copyright(c) 2002-2005 Christian Diefer
  6.  
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License version 2 as 
  9.    published by the Free Software Foundation.
  10.    
  11.    This program is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.    
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software
  18.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #pragma once
  22. #include "afxwin.h"
  23.  
  24.  
  25. // CCPUOptions dialog
  26.  
  27. class CCPUOptions : public CDialog
  28. {
  29.     DECLARE_DYNAMIC(CCPUOptions)
  30.  
  31. public:
  32.     CCPUOptions(CWnd* pParent = NULL);   // standard constructor
  33.     virtual ~CCPUOptions();
  34.   void setVars();
  35.   void getVars();
  36.   BOOL cpu;
  37.   void applyChanges( int config );
  38.   int m_iCStateConfig;
  39.  
  40. // Dialog Data
  41.     enum { IDD = IDD_CPUOPT };
  42.  
  43. protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.     virtual BOOL OnInitDialog();
  46.   virtual BOOL PreTranslateMessage(MSG* pMsg);
  47.  
  48.     DECLARE_MESSAGE_MAP()
  49.  
  50. private:
  51.   void fillCStateArray( int config );
  52.   void addToolTip( int no, int id, CString str );
  53.  
  54.   int m_iDynThrottleAC;
  55.   int m_iDynThrottleDC;
  56.   int m_iTimeCheck[3];
  57.   int m_iDemoteLimit[3];
  58.   int m_iPromoteLimit[3];
  59.   int m_iDemotePercent[3];
  60.   int m_iPromotePercent[3];
  61.   int m_iAllowDemotion[3];
  62.   int m_iAllowPromotion[3];
  63.   PROCESSOR_POWER_POLICY polAC;
  64.   PROCESSOR_POWER_POLICY polDC;
  65.   CToolTipCtrl m_tToolTip[22];
  66.  
  67. public:
  68.   afx_msg void OnCbnSelchangeCombo3();
  69. };
  70.